﻿using System.Linq;
using CharacterCreation.Data.Annotations;
using System;

namespace CharacterCreation.Data.QueryBuilders {
    public class DeleteBuilder {
        public static string DeleteQuery<T>(Guid id) {

            TableAttribute tableAttribute = TableBuilder.GetTableAttribute<T>();

            return string.Format("delete from {0} where Id = '{1}'", 
                tableAttribute.TableName, id);
        }
    }
}
